package com.banyuan;

import java.util.Scanner;

public class StudentJavabeanTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生的姓名");
        String studentName = sc.next();
        System.out.println("请输入学生的年龄");
        int studentAge = sc.nextInt();
        StudentJavabean student1 = new StudentJavabean();
        student1.setName(studentName);
        System.out.println(student1.getName());
        student1.setAge(studentAge);
        System.out.println(student1.getAge());
        System.out.println(student1.toString());


    }

}
